package leetcode.array;

import leetcode.array.common.ArrayUtils;

class Solution252 {
    /**
     * 必须全程参加才算参加
     *
     * @param intervals
     * @return
     */
    public boolean canAttendMeetings(int[][] intervals) {
        return ArrayUtils.canAttendMeetings(intervals);
    }
}

public class leetcode252 {
    public static void main(String[] args) {
        Solution252 solution252 = new Solution252();
        int[][] intervals = {{0, 30}, {5, 10}, {15, 20}};
        int[][] intervals1 = {{7, 10}, {2, 4}};
        int[][] intervals2 = {{6, 15}, {13, 20}, {6, 17}};
        System.out.println(solution252.canAttendMeetings(intervals));
        System.out.println(solution252.canAttendMeetings(intervals1));
        System.out.println(solution252.canAttendMeetings(intervals2));
    }
}
